package com.ganzalang.gmall.designchain;

import com.ganzalang.gmall.designchain.factory.VacationHandlerFactory;
import com.ganzalang.gmall.designchain.service.VacationHandler;
import com.ganzalang.gmall.designchain.service.impl.DepartmenterVacationHandler;
import com.ganzalang.gmall.designchain.service.impl.GrouperVacationHandler;
import com.ganzalang.gmall.designchain.service.impl.ManagerVacationHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class GmallDesignChainApplication {

    public static void main(String[] args) {
        SpringApplication.run(GmallDesignChainApplication.class, args);

        VacationHandler vacationHandler = VacationHandlerFactory.createVacationHandler();

        for (int i = 1; i < 9; i = i+3) {
            vacationHandler.handle(i);
        }


    }

}
